<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GoodsCategory extends Model
{
    protected $table = 'goods_category';

    protected $fillable = [
    	'category_name','pid'
	];

	public function goods()
	{
		return $this->hasMany(Goods::class,'category_id','id');
	}
}
